#include "log/log.h"
#include "app_runner.h"
#include "string.h"
int main(int argc, char const *argv[]) {
    if (argc == 1)
    {
        log_error("运行程序必须携带参数");
        return -1;
    }
    if (memcmp(argv[1],"app",3) == 0)
    {
        app_runner_run();
    }
    else if (memcmp(argv[1],"ota",3) == 0)
    {
        //执行ota模块
    }
    else
    {
        log_error("参数错误");
        return -1;
    }
    return 0;
    
}